package com.dgq.main.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.After;
import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;


@Component
@Aspect
public class CommonLog {

	@Pointcut("execution(public * com.dgq.main.service.impl.AccountServiceImpl.*(..))")
	public void insertLog(){};

	@Before("insertLog()")
	public void exInsertLogBefore(){

		System.out.println("-----exInsertLogBefore");
	}

	@After("insertLog()")
	public void exInsertLogAfter(){

		System.out.println("-----exInsertLogAfter");
	}
}
